package dominion.model.actions.base;

import java.util.List;

import dominion.model.Card;
import dominion.model.GameBoard;
import dominion.model.Player;
import dominion.model.actions.Action;

public class Woodcutter extends Action {

	public Woodcutter() {
		cost = 3;
	}

	@Override
	public Card clone() {
		return new Woodcutter();
	}

	@Override
	public String toString() {
		return "Woodcutter";
	}

	@Override
	public String getDescription() {
		StringBuffer sb = new StringBuffer();
		sb.append(super.getDescription());
		sb.append("+1 buy\n");
		sb.append("+$2\n");
		return sb.toString();
	}

	@Override
	public void doAction(Player player, GameBoard board, List<Player> players) {
		player.changeAction(-1);
		player.changeBuys(1);
		player.changeMoney(2);
		playedCard(player);
	}
}
